<div class="SubMainTitle">
	<b class="FT14">基本设置 - 小店管理</b>
</div>
<br /><br />
<div class="Mylist">
<form id="setManageBasicset" name="setManageBasicset" onsubmit="return XypForm(this);" enctype="multipart/form-data" method="post" action="act.php">
<table width="90%" border="0" align="center" cellpadding="5" cellspacing="0">
    <tr>
      <td width="15%" class="b">小店名称：</td>
      <td width="85%"><input name="sname" require="1" value="<?=$rs["sname"]?>" type="text" size="20" id="sname"/>
        *</td>
    </tr>
    <tr>
      <td class="b">小店所属分类：</td>
      <td>
      <select name="shop_class" require="1" id="shop_class">
        <option value="0">-->请选择小店所属的分类<--</option>
        <? foreach($rs_cat as $k=>&$v){?>
        <option value="<?=$k?>"><?=$v?></option>
        <? }?>
      </select>
      </td>
    </tr>
    <tr>
      <td class="b">小店风格：</td>
      <td><select name="cShopStyle" id="cShopStyle" >
        <option value="0" selected="selected">默认风格</option>
        <option value="1" >自然印象</option>
        <option value="2" >粉色回忆</option>
        <option value="3" >金属狂想</option>
        <option value="4" >阳光地带</option>
        <option value="5" >紫色心情</option>
        <option value="6" >青青世界</option>
      </select>        
      *      
      </td>
    </tr>
    <tr>
      <td class="b">上传小店招牌：</td>
      <td><? if($rs["cShopStyle"]){?>
         <img src="<?=shop::img($rs["sid"]);?>" /><br />
		 <input name="img"  type="file" /> 注:不更改招牌,不用上传新的图片
         <? }else{?>
         <input name="img"  require="1" accept="jpg|gif"  type="file" /> * 
         <? }?>
        </td>
    </tr>
    <tr>
      <td valign="top" class="b">简介：</td>
      <td><script type="text/javascript">
	  		var Form = document.setManageBasicset;
		  	var desc = <?=json::encode($rs["desc"])?>;
		  	if(jQuery.browser.msie)
			{
				document.write('<textarea name="desc" id="desc" style="display:none">'+(desc||'')+'</textarea>');
				document.write('<iframe ID="Editor" name="Editor" src="/editors/edit.htm?id=desc" frameBorder="0" marginHeight="0" marginWidth="0" scrolling="No" style="height:320px;width:100%"></iframe>');
				document.write('在线编辑器仅支持IE5.5及以上版本，如果看不到在线编辑器，<a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=1e1550cb-5e5d-48f5-b02b-20b602228de6&amp;displaylang=zh-cn" target="_blank">请点击升级浏览器</a>。');
			}else
			{
				document.write('<textarea name="desc" id="desc" require="1"  minlen="3" maxlen="50000"  msg="商品详细描述必须在[3～50000]个字符之内,一个中文是两个字符!" style="height:320px; width:100%">'+(desc||'')+'</textarea>');
			};
			var shop_class = <?=json::encode($rs["shop_class"])?>;
			var cShopStyle = <?=json::encode($rs["cShopStyle"])?>;
			if(shop_class) Form.shop_class.value = shop_class;
			if(cShopStyle) Form.cShopStyle.value = cShopStyle;
		  </script>
        *</td>
    </tr>
    
    <tr>
      <td>&nbsp;</td>
      <td class="b">
        <input type="submit" class="submitMini" value="我塡好啦，提交出去">
        <input type="hidden" name="Pact" value="setManageBasicset" />
        &nbsp;&nbsp;   
        <input type="reset" class="submitMini"></td>
    </tr>
</table>
</form>
</div>
<script type="text/javascript">


$("td.td_img").each(function(){Player.image(this,60);});
$("input.submitMini")
.mouseover(function(){this.className='submitMiniOver'})
.mouseout(function(){this.className='submitMini'});
document.title = $("b.FT14","div.SubMainTitle").html().trim()+"_"+document.title;
if(typeof XypForm == "undefined")
{
	include.js(__scfg__.staticUrl+"xypfrom/xypfrom.js");
	include.css(__scfg__.staticUrl+"xypfrom/xypfrom.css");
}
</script>